Repository navigation
feat: Add a docs eval for timeouts - #554
Open
jeremenichelli wants to merge 1 commit into
Open
jeremenichelli wants to merge 1 commit into
jeremenichelli wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Feature: a new docs eval,
build-docs-033-timeouts.What is the current behavior?
There is no eval for the Timeouts guide, so nothing checks whether an agent
that reads it leaves a project where a signed-out visitor's slow query is
cancelled while the server's own job still finishes.
What is the new behavior?
The eval asks an agent to cut a visitor's query off after one second without
touching the nightly job that legitimately runs the same 4 second report with
the secret key. The scorer applies pending migrations, then calls the function
through the Data API as a visitor and as the server key, and checks:
The claim was confirmed on a real local stack (CLI 2.117.0):
anon3s,authenticated8s,service_rolenone).alter role anon set statement_timeout = '1s'cancels a slow call with57014after 1.0 seconds.alter roleit still cancelled at the old 3 seconds. The page names thereload and not what a missing one looks like.
No baseline score is recorded yet. Three OpenAI runs were started and stopped
before any finished.
Additional context
this;
statement_timeoutappears only in two CLI test files.never reloaded, nothing changed, function-level,
anonandservice_roleboth set, too low, raised to 10s). Each matched the prediction written
beforehand.
its full 4 seconds. A function-level or server-key timeout cancels it, so
only a timeout on the visitor's role satisfies both.
reload configand calls again. A cancel only after the reload costs the reload check and
nothing else. A correct run spends about 6 seconds in the probes, the worst
case about 15.
mistaken for an applied one.
connections, session-level settings, global timeouts, lock and idle timeouts,
the Dashboard ceiling, and the timeout logs.
033follows the evals on other branches. Ids are permanent oncepublished, so say if another number is wanted.